<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: luanzg <782114271@qq.com>
// +----------------------------------------------------------------------
use think\facade\Route;
use app\common\middleware\Admin;

Route::group(function () {
    //素材类型栏目下路由 
    // Route::get('material/mattype', 'mattypeList');
    // Route::put('material/mattype', 'mattypeEdit'); 
    // Route::post('material/mattype', 'mattypeAdd'); 
    // Route::delete('material/mattype', 'mattypeDel');

    // 总编室编单频道日期路由
    Route::get('playeditroom/pgmplaydatelist', 'pgmplaydatelist');
    Route::post('playeditroom/pgmplaydateadd', 'pgmplaydateadd');
    Route::get('playeditroom/playchannelpgm', 'playchannelpgm');
    Route::delete('playeditroom/playchannelpgm', 'playchannelpgmDel');
    Route::get('playeditroom/playchanneldetail', 'playchanneldetail');

    Route::get('playeditroom/pgmplaystate', 'pgmplaystate');

    Route::delete('playeditroom/pgmdetail', 'pgmdetailDel');
    Route::post('playeditroom/pgmdetail', 'pgmdetailAddEdit');
})->prefix('PlayEditroom/')->allowCrossDomain(headers())->middleware(Admin::class);
